﻿<UserControl x:Class="SelectionPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="458" Height="56">
    <UserControl.Resources>
        <DataTemplate x:Key="TeamProjectListTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Name}" />
                <TextBlock Text=" (" />
                <TextBlock Text="{Binding Path=Id}" />
                <TextBlock Text=")" />
              </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="TeamServerListTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Name}" />
                <TextBlock Text=" (" />
                <TextBlock Text="{Binding Path=HasAuthenticated}" />
                <TextBlock Text=")" />
              </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <Border CornerRadius="10" BorderBrush="LightBlue" BorderThickness="5">
        <Grid Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition>
                </ColumnDefinition>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Label  Name="ux_TeamServerLabel" FontStretch="UltraCondensed" Grid.Column="0" Grid.Row="0" VerticalContentAlignment="Top">Team Server:</Label>
            <ComboBox Name="ux_TeamServerDDL" ItemsSource="{Binding}" ItemTemplate="{StaticResource TeamServerListTemplate}" Grid.Column="0" Grid.Row="1" Margin="2" />
            <Label  Name="ux_TeamProjectLabel" FontStretch="UltraCondensed" Grid.Column="1" Grid.Row="0" VerticalContentAlignment="Top">Team Project:</Label>
            <ComboBox Name="ux_TeamProjectDDL" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}" ItemTemplate="{StaticResource TeamProjectListTemplate}" Grid.Column="1" Grid.Row="1" Margin="2" IsEnabled="False" />
            <Label  Name="ux_TeamViewLabel" FontStretch="UltraCondensed" Grid.Column="2" Grid.Row="0" VerticalContentAlignment="Top">Team View:</Label>
            <ComboBox Name="ux_TeamViewDDL" ItemsSource="{Binding}" Grid.Column="2" Grid.Row="1" Margin="2" IsEnabled="False" />
        </Grid>
    </Border>
</UserControl>
